ewebsock
This is a simple WebSocket library for Rust which can be compiled to both native and web (WASM).
Usage
let options = default;
// see documentation for more options
let = connect.unwrap;
sender.send;
while let Some = receiver.try_recv
Testing
First start the example echo server with:
Then test the library with:
# native mode
# web mode
# install trunk with `cargo install trunk` - https://trunkrs.dev/
( && )